import App from './App'
import store from './store'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 过滤器
import filters from './filters/index.js'
// 将过滤器注册到全局使用
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store,
})

import '@/utils/mixin.js'

// 引入全局方法
import _ from "@/utils/index.js"
Vue.prototype._ = _


app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
